package org.example.cardgame.utils;

import org.example.cardgame.entity.Card;

import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;

/**
 * 将扑克牌按从大到小排序
 */
public class PokerComparator implements Comparator {

    @Override
    public int compare(Object arg0, Object arg1) {
        Card poker1 = (Card)arg0;
        Card poker2 = (Card)arg1;
        return poker2.getNumber() - poker1.getNumber();
    }

    public static void main(String[] args) {

        System.out.println((long)(4 * Math.pow(10, 10)));
    }

}
